package com.link2room.optimus.dto.result.base;

import com.link2room.common.annotation.L2RDatetimeString;
import com.link2room.common.dto.result.base.BaseDto;
import com.link2room.common.util.DateUtil;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by sss on 2016/9/18.
 */
public class HotelMinPriceDto extends BaseDto {
    /**
     * 最低价
     */
    private BigDecimal minPrice;
    /**
     * 预定日期
     */
    private Date rsvDate;
    /**
     * 预定日期
     */
    @L2RDatetimeString(source = "rsvDate")
    private String rsvDatetime;
    /**
     * 发布渠道
     */
    private String pbChannel;

    public BigDecimal getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(BigDecimal minPrice) {
        this.minPrice = minPrice;
    }

    public Date getRsvDate() {
        return rsvDate;
    }

    public void setRsvDate(Date rsvDate) {
        this.rsvDate = rsvDate;
    }

    public String getRsvDatetime() {
        return rsvDatetime;
    }

    public void setRsvDatetime(String rsvDatetime) {
        this.rsvDatetime = rsvDatetime;
        setRsvDate(DateUtil.parseDateNewFormat(rsvDatetime));
    }

    public String getPbChannel() {
        return pbChannel;
    }

    public void setPbChannel(String pbChannel) {
        this.pbChannel = pbChannel;
    }
}
